// 公共混入，存放公共变量、方法等
export default {
  methods: {
    // 获取出荷时间(unTxt: 没设定出荷时间时使用的文字，默认：即将开订)
    getPublishString(publishtype, publishyear, publishtime, unTxt = '即将开订') {
      const showTime = publishtime === 'q0' ? `${unTxt} ` : publishtime + 0 > 0 ? `${publishtime}月` : publishtime
      return publishtype === '1' || (publishyear === '0' && publishtime === '0') ? unTxt : `${publishyear}年${showTime}`
    }
  }
}
